import VueRouter from 'vue-router'

//项目导航栏路由
import firstPage from './components/firstPage.vue'
import itemShow from './components/itemShow.vue'
import simulation from './components/simulation.vue'
import stepAnalysis from './components/stepAnalysis.vue'
import videoOperation from './components/videoOperation.vue'
import teachers from './components/teachers.vue'
import aboutUs from './components/aboutUs.vue'

// 实验项目简介子路由
import purpose from './components/itemShow/purpose.vue'
import principle from './components/itemShow/principle.vue'
import equipment from './components/itemShow/equipment.vue'
import materials from './components/itemShow/materials.vue'
import method from './components/itemShow/method.vue'
import step from './components/itemShow/step.vue'
import conclusion from './components/itemShow/conclusion.vue'
import assessment from './components/itemShow/assessment.vue'
import student from './components/itemShow/student.vue'
import application from './components/itemShow/application.vue'

//教师详情
import principal from './components/itemTeam/principal.vue'

// 实验步骤解析子路由
import first from './components/stepAnalysis/firstStep.vue'
import second from './components/stepAnalysis/secondStep.vue'
import third from './components/stepAnalysis/thirdStep.vue'
import four from './components/stepAnalysis/fourStep.vue'
import five from './components/stepAnalysis/fiveStep.vue'
import six from './components/stepAnalysis/sixStep.vue'
import seven from './components/stepAnalysis/sevenStep.vue'
import eight from './components/stepAnalysis/eightStep.vue'
import nine from './components/stepAnalysis/nineStep.vue'
import ten from './components/stepAnalysis/tenStep.vue'
import eleven from './components/stepAnalysis/elevenStep.vue'
import twelve from './components/stepAnalysis/twelveStep.vue'



let router = new VueRouter({
    routes: [
        { path: '/', redirect: '/firstPage' },
        { path: '/firstPage', component: firstPage },
        {
            path: '/itemShow', component: itemShow,
            children: [
                { path: '/itemShow', redirect: '/itemShow/purpose' },
                { path: '/itemShow/purpose', component: purpose },
                { path: '/itemShow/principle', component: principle },
                { path: '/itemShow/equipment', component: equipment },
                { path: '/itemShow/materials', component: materials },
                { path: '/itemShow/method', component: method },
                { path: '/itemShow/step', component: step },
                { path: '/itemShow/conclusion', component: conclusion },
                { path: '/itemShow/assessment', component: assessment },
                { path: '/itemShow/student', component: student },
                { path: '/itemShow/application', component: application }
            ]
        },
        { path: '/simulation', component: simulation },
        {
            path: '/stepAnalysis', component: stepAnalysis,
            children: [
                { path: '/stepAnalysis', redirect: '/stepAnalysis/first' },
                { path: '/stepAnalysis/first', component: first },
                { path: '/stepAnalysis/second', component: second },
                { path: '/stepAnalysis/third', component: third },
                { path: '/stepAnalysis/four', component: four },
                { path: '/stepAnalysis/five', component: five },
                { path: '/stepAnalysis/six', component: six },
                { path: '/stepAnalysis/seven', component: seven },
                { path: '/stepAnalysis/eight', component: eight },
                { path: '/stepAnalysis/nine', component: nine },
                { path: '/stepAnalysis/ten', component: ten },
                { path: '/stepAnalysis/eleven', component: eleven },
                { path: '/stepAnalysis/twelve', component: twelve }
            ]

        },
        { path: '/videoOperation', component: videoOperation },
        { path: '/teachers', component: teachers },
        { path: '/teachers/principal', component: principal },
        { path: '/aboutUs', component: aboutUs }

    ],
    linkActiveClass: "active"
})

export default router